<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/TabComp.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/TabComp.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_tab_comp_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef TABCOMP_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define TABCOMP_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="_comportement_8h.html" title="Définit la structure Comportement.">Comportement.h</a>&quot;</span>
<a name="l00012"></a>00012 
<a name="l00022"></a><a class="code" href="struct_tab_comp.html">00022</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00023"></a>00023 {
<a name="l00024"></a><a class="code" href="struct_tab_comp.html#a88dc36f5f1c4d035b0d31f3399b8b49f">00024</a>    <span class="keywordtype">int</span> <a class="code" href="struct_tab_comp.html#a88dc36f5f1c4d035b0d31f3399b8b49f">nbComp</a>;          
<a name="l00025"></a><a class="code" href="struct_tab_comp.html#ab3bfb0d5b1dab65812cf6f63bbf1025c">00025</a>    <a class="code" href="struct_comportement.html" title="Informations définissant un Comportement.">Comportement</a> **tab;  
<a name="l00027"></a>00027 } <a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a>;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">/*======================== Gestion de la mémoire =======================*/</span>
<a name="l00038"></a>00038 <span class="keywordtype">void</span> <a class="code" href="_tab_comp_8c.html#af0d35ec721222a9afee4f7ca3992043d" title="Initialise une structure TabComp.">initTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp, <span class="keywordtype">int</span> nb);
<a name="l00039"></a>00039 
<a name="l00046"></a>00046 <span class="keywordtype">void</span> <a class="code" href="_tab_comp_8c.html#a2470f3c4b0c7ce68dfa36e50ccf00810" title="Crée le tableau des Comportements.">creerTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> **ptabComp, <span class="keywordtype">int</span> nb);
<a name="l00047"></a>00047 
<a name="l00055"></a>00055 <span class="keywordtype">void</span> <a class="code" href="_tab_comp_8c.html#a98efb8fc265b013b768c912058494584" title="Libère la mémoire allouée aux champs du tableau de Comportements donné">libereTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp);
<a name="l00056"></a>00056 
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="_tab_comp_8c.html#a61bfd64e07f38a810c87a956a7c31c8c" title="Libère la mémoire allouée à un TabComp donné">detruireTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp);
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="comment">/*============================= Accesseurs =============================*/</span>
<a name="l00065"></a>00065 
<a name="l00071"></a>00071 <span class="keywordtype">int</span> <a class="code" href="_tab_comp_8c.html#abef1ebfdb57f7ca6e2462c07b25bdfd3" title="Retourne le nombre de comportements du tableau de Comportements.">getNbCompTabComp</a>(<span class="keyword">const</span> <a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp);
<a name="l00072"></a>00072 
<a name="l00079"></a>00079 <a class="code" href="struct_comportement.html" title="Informations définissant un Comportement.">Comportement</a> *<a class="code" href="_tab_comp_8c.html#a3cf471fb56b002391dd7ce28231da985" title="Retourne le ième élément du tableau de Comportement.">getIemeCompTabComp</a>(<span class="keyword">const</span> <a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp, <span class="keywordtype">int</span> i);
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="comment">/*============================== Mutateurs =============================*/</span>
<a name="l00083"></a>00083 
<a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="_tab_comp_8c.html#acec22301dc9312bec36db11bd359e892" title="Remplace la valeur indiquant la taille du tableau des Comportements par une valeur donnée...">setNbCompTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp, <span class="keywordtype">int</span> nouvVal);
<a name="l00091"></a>00091 
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="_tab_comp_8c.html#ac825fdf116c86ea89a21cb4197d53c2e" title="Remplace le contenu de la Ième case du tableau de comportements par le pointeur donné">setIemeCompTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp, <a class="code" href="struct_comportement.html" title="Informations définissant un Comportement.">Comportement</a> *pcomp, <span class="keywordtype">int</span> i);
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 <span class="comment">/*========================== Fonctions autres ==========================*/</span>
<a name="l00109"></a>00109 <a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *<a class="code" href="_tab_comp_8c.html#a3ffdd55c84b493d9c24afb0797e61461" title="Crée le tableau des Comportements tel qu&#39;il sera utilisé dans le jeu, en se basant sur les actions et...">creerDonneeTabComp</a>();
<a name="l00110"></a>00110 
<a name="l00119"></a>00119 <a class="code" href="struct_comportement.html" title="Informations définissant un Comportement.">Comportement</a> *<a class="code" href="_tab_comp_8c.html#a002fde441b7a98b4519b48273227029c" title="Renvoie le comportement dont on aura donné le nom en paramètre. Si ce comportement n&#39;existe pas...">rechercheCompNomTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp, <span class="keywordtype">char</span> *nomComp);
<a name="l00120"></a>00120 
<a name="l00128"></a>00128 <a class="code" href="struct_comportement.html" title="Informations définissant un Comportement.">Comportement</a> *<a class="code" href="_tab_comp_8c.html#a509df90abd5bf718da50c92fdca9f633" title="Renvoie le comportement associé à la production dont on aura donné le nom en paramètre. Si aucun comportement ne convient, renvoie le comportement Inactif.">rechercherCompNomProdTabComp</a>(<a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *ptabComp, <span class="keywordtype">char</span> *nomProd);
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="comment">/*========================== Fonction de Test ==========================*/</span>
<a name="l00136"></a>00136 <span class="keywordtype">void</span> <a class="code" href="_tab_comp_8c.html#a0f9145f009f85b97ca67d49d1b032edf" title="Teste les différentes fonctions du module TabComp.">testTabComp</a>();
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
